﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using java.util;
using org.napile.primitive;
using org.napile.primitive.sets;
using org.napile.primitive.sets.impl;

namespace Game.templates.item.support
{
    public class EnchantItem
    {
        private int _itemId;
	    
	    private int _chance;
	    
	    private int _maxEnchant;
	    
	    private IntSet _items = Containers.EMPTY_INT_SET;
	    
	    private Set _grades = Collections.emptySet();
        public EnchantItem(int itemId, int chance, int maxEnchant)
        {
            _itemId = itemId;
            _chance = chance;
            _maxEnchant = maxEnchant;
        }
        public void addItemId(int id)
        {
            if (_items.isEmpty())
            {
                _items = new HashIntSet();
            }
            _items.add(id);
        }
        public int getItemId()
        {
            return _itemId;
        }
        public int getChance()
        {
            return _chance;
        }
        public int getMaxEnchant()
        {
            return _maxEnchant;
        }
        public Set getGrades()
        {
            return _grades;
        }
        public IntSet getItems()
        {
            return _items;
        }
    }
}
